package demo2;

public class Test {

    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        arrayList.addArray(1);
        arrayList.addArray(2);
        arrayList.addArray(3);
        arrayList.disPlay();
        System.out.println("========");

        /*arrayList.addArray(4);
        arrayList.disPlay();
        arrayList.addArray(5);
        arrayList.disPlay();
        arrayList.addArray(6);
        arrayList.disPlay();
        try {
            arrayList.addArray(1,99);
            arrayList.disPlay();
        }catch (IndexOutOfException e) {
            e.printStackTrace();
        }
        System.out.println("======");
        try {
            System.out.println(arrayList.getIndex(8));
            arrayList.disPlay();
        }catch (IndexOutOfException e) {
            e.printStackTrace();
        }*/


    }

}
